/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Stratego;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 *
 * @author lipnz
 */
public class Bord extends JPanel{
    Image img = new ImageIcon(getClass().getResource("images/Board_realistic.PNG")).getImage();

    public Bord(){
                     
        setLayout(new GridLayout(0,10));
        
        for(int i = 0; i<100; i++){
            Vak label = new Vak();
            label.setPreferredSize(new Dimension(50,50));
            add(label);
        }
      }

    @Override
        public void paintComponent(Graphics g){
                       g.drawImage(img, 0, 0, getWidth(), getHeight(), this);
          }

}
